<table class="table table-striped">
    <caption>
        @if($typeCode=='entity')
            [{{$prizeName}}]奖品库存记录
        @else
            [{{$prizeName}}]红包记录
        @endif
    </caption>
    <thead>
    <tr>
        <th>时间</th>
        <th>操作类型</th>
        @if($typeCode=='entity')
            <th>数量</th>
            <th>结余</th>
        @else
            <th>金额</th>
            <th>结余金额</th>
        @endif
    </tr>
    </thead>
    <tbody>
    @forelse($showPrizeRecords as $prizeRecord)
        <tr>
            <td>{{$prizeRecord['date']}}</td>
            <td>{{$prizeRecord['operate']}}</td>
            <td>{{$prizeRecord['number']}}</td>
            <td>{{$prizeRecord['summary']}}</td>
        </tr>
    @empty
        <tr>
            <td colspan="4">暂无数据</td>
        </tr>
    @endforelse
    </tbody>
</table>
<table class="table table-striped">
    <caption>相关活动库存信息</caption>
    <thead>
    <tr>
        @if($typeCode=='entity')
            <th>活动名称</th>
            <th>占用数量</th>
            <th>当前已中奖数</th>
            <th>未兑奖</th>
            <th>兑奖成功</th>
            <th>本活动奖品剩余</th>
        @else
            <th>活动名称</th>
            <th>锁定金额</th>
            <th>中奖发放金额</th>
            <th>结余金额</th>
        @endif
    </tr>
    </thead>
    <tbody>
    @forelse($prizeActivities as $prizeAvtivity)
        <tr>
            @if($typeCode=='entity')
                <td>{{$prizeAvtivity['activityName']}}</td>
                <td>{{$prizeAvtivity['number']}}</td>
                <td>{{$prizeAvtivity['win']}}</td>
                <td>{{$prizeAvtivity['notExchange']}}</td>
                <td>{{$prizeAvtivity['exchange']}}</td>
                <td>{{$prizeAvtivity['remain']}}</td>
            @else
                <td>{{$prizeAvtivity['activityName']}}</td>
                <td>{{$prizeAvtivity['number']}}</td>
                <td>{{$prizeAvtivity['win']}}</td>
                <td>{{$prizeAvtivity['remain']}}</td>
            @endif
        </tr>
    @empty
        <tr>
            <td colspan="6">暂无数据</td>
        </tr>
    @endforelse
    </tbody>
</table>